package com.todo.biz.application.remote;

import com.todo.common.common.entity.response.BizResponse;
import com.todo.delicacy.service.api.request.QueryRestaurantDetailByIdRequest;
import com.todo.delicacy.service.api.request.QueryRestaurantInfoByIdListRequest;
import com.todo.delicacy.service.api.response.RestaurantDetailResponse;
import com.todo.delicacy.service.api.response.RestaurantInfoResponse;
import io.swagger.v3.oas.annotations.Operation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @author azhebuxing
 * @date 2025/2/25 23:10
 * @description
 */
@FeignClient(name = "todoDelicacyService", url = "http://localhost:18203")
public interface RestaurantInfoRemoteService {


    @Operation(summary = "根据id查询美食详情")
    @PostMapping("/api/restaurantInfo/queryRestaurantDetailById")
    BizResponse<RestaurantDetailResponse> queryRestaurantDetailById(@RequestBody QueryRestaurantDetailByIdRequest request);


    @Operation(summary = "根据id列表查询表详情")
    @PostMapping("/api/restaurantInfo/queryRestaurantInfoByIdList")
    BizResponse<List<RestaurantInfoResponse>> queryRestaurantInfoByIdList(@RequestBody QueryRestaurantInfoByIdListRequest request);
}
